package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-付款类型
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum PayTypeEnum {

    // 回款类型
    CONVENTIONAL("1", "enum.payType.name.conventional", "conventional"),


    PREPAYMENTS("2", "enum.payType.name.prepayments", "prepayments"),


    TAIL("3", "enum.payType.name.tail", "tail"),


    MARGIN("4", "enum.payType.name.margin", "margin"),
    ;

    private String code;
    private String name;
    private String attr;

    PayTypeEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
